<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateAlumnoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateAlumnoLabel_claveUnica}" for="claveUnica" />
                    <h:inputText id="claveUnica" value="#{alumnoController.selected.claveUnica}" title="#{bundle.CreateAlumnoTitle_claveUnica}" required="true" requiredMessage="#{bundle.CreateAlumnoRequiredMessage_claveUnica}"/>
                    <h:outputLabel value="#{bundle.CreateAlumnoLabel_APaterno}" for="APaterno" />
                    <h:inputText id="APaterno" value="#{alumnoController.selected.APaterno}" title="#{bundle.CreateAlumnoTitle_APaterno}" required="true" requiredMessage="#{bundle.CreateAlumnoRequiredMessage_APaterno}"/>
                    <h:outputLabel value="#{bundle.CreateAlumnoLabel_AMaterno}" for="AMaterno" />
                    <h:inputText id="AMaterno" value="#{alumnoController.selected.AMaterno}" title="#{bundle.CreateAlumnoTitle_AMaterno}" required="true" requiredMessage="#{bundle.CreateAlumnoRequiredMessage_AMaterno}"/>
                    <h:outputLabel value="#{bundle.CreateAlumnoLabel_nombre}" for="nombre" />
                    <h:inputText id="nombre" value="#{alumnoController.selected.nombre}" title="#{bundle.CreateAlumnoTitle_nombre}" required="true" requiredMessage="#{bundle.CreateAlumnoRequiredMessage_nombre}"/>
                    <h:outputLabel value="#{bundle.CreateAlumnoLabel_email}" for="email" />
                    <h:inputText id="email" value="#{alumnoController.selected.email}" title="#{bundle.CreateAlumnoTitle_email}" required="true" requiredMessage="#{bundle.CreateAlumnoRequiredMessage_email}"/>
                    <h:outputLabel value="#{bundle.CreateAlumnoLabel_fechaInicioExamen}" for="fechaInicioExamen" />
                    <h:inputText id="fechaInicioExamen" value="#{alumnoController.selected.fechaInicioExamen}" title="#{bundle.CreateAlumnoTitle_fechaInicioExamen}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateAlumnoLabel_password}" for="password" />
                    <h:inputText id="password" value="#{alumnoController.selected.password}" title="#{bundle.CreateAlumnoTitle_password}" required="true" requiredMessage="#{bundle.CreateAlumnoRequiredMessage_password}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{alumnoController.create}" value="#{bundle.CreateAlumnoSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{alumnoController.prepareList}" value="#{bundle.CreateAlumnoShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateAlumnoIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
